home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-03-12 | 412 b | 22 lines | [TEXT/CWIE] |
- // Assert.h
-
- #ifndef Assert_h
- #define Assert_h
-
- #ifndef DebugMessage_h
- #include "DebugMessage.h"
- #endif
-
- #include "ConfigureAssertions.h"
-
- extern DebugMessage AssertionMessage( const char *file,
- uint32 line,
- const char *condition );
-
- #define Assert( condition ) \
- { \
- if ( useAssertions && !(condition) ) \
- AssertionMessage( __FILE__, __LINE__, #condition ).Show(); \
- }
-
- #endif